#ifndef PROMPTEDITOR_H
#define PROMPTEDITOR_H

#include <QDialog>
#include "translateprompt.h"

QT_BEGIN_NAMESPACE
class QLineEdit;
class QTextEdit;
class QPushButton;
QT_END_NAMESPACE

class PromptEditor : public QDialog
{
    Q_OBJECT

public:
    explicit PromptEditor(QWidget *parent = nullptr);
    ~PromptEditor();

private slots:
    void savePrompt();
    void loadPrompt();
    void resetPrompt();

private:
    void initUI();
    void initConnections();

    QLineEdit* m_promptEdit;
    QLineEdit* m_prefixEdit;
    QLineEdit* m_suffixEdit;
    QTextEdit* m_userPromptsEdit;
    QTextEdit* m_assistantPromptsEdit;
    QPushButton* m_saveButton;
    QPushButton* m_cancelButton;
    QPushButton* m_resetButton;

    TranslatePrompt* m_translatePrompt;
    QString m_jsonPath;

    void updateDisplay(const PromptInfo& info);
};

#endif // PROMPTEDITOR_H 